﻿
using AlarmModule;
using AlarmModule.DbContexts;
using AlarmModule.Interface;
using AlarmModule.Interface.Implementation;
using DryIoc;
using LoginModule;
using LoginModule.Models;
using LogModule;
using LogModule.Interface;
using LogModule.Interface.Imp;
using MonitorModule;
using Prism.Dialogs;
using Prism.DryIoc;
using Prism.Ioc;
using Prism.Modularity;
using StaffModule;
using System;
using System.Threading.Tasks;
using System.Windows;
using WorkshopModule;
using System.Windows.Controls;

namespace MonitorModule.Views {
    /// <summary>
    /// MonitorUC.xaml 的交互逻辑
    /// </summary>
    public partial class MonitorUC : UserControl {

        public MonitorUC() {
            InitializeComponent();
        }


        #region Setting配置窗口

        /// <summary>
        /// 弹出配置窗口
        /// </summary>
        /// 
        private void ShowSettings() {
            #region MyRegion
            //父子关系
            SettingsWin settingsWin = new SettingsWin();

            settingsWin.Owner = Window.GetWindow(this);
            //ShowDialog:子窗口弹出来后,父窗口不能动;show:父窗口可以动
            settingsWin.ShowDialog();

            #endregion



        }
        #endregion

        private void Button_Click(object sender, RoutedEventArgs e) {
            ShowSettings();
        }
    }
}
